<template>
  <div class="singerCard">
    <div
      class="singerCardItem"
      v-for="(item, index) in singerInfo"
      :key="index"
    >
      <div class="singerImg">
        <img :src="item.avatarUrl" alt="" />
      </div>
      <div class="center">
        <div class="singerName">{{ item.nickname }}</div>
        <div class="info">
          <div class="event">
            动态<span>{{ item.eventCount }}</span> |
          </div>
          <div class="follow">
            关注<span>{{ item.follows }}</span> |
          </div>
          <div class="fans">
            粉丝<span>{{ item.followeds }}</span>
          </div>
        </div>
        <div class="signature">{{ item.signature }}</div>
      </div>
      <div class="rightBtn"></div>
    </div>
  </div>
</template>

<script>
export default {
  name: "SingerCard",
  props: {
    singerInfo: {
      type: Array,
      default() {
        return [];
      },
    },
  },
  data() {
    return {};
  },

  mounted() {},

  methods: {},
};
</script>

<style lang="less" scoped>
.singerCard {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  .singerCardItem {
    width: 45%;
    padding: 5px 10px;
    height: 120px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    // background-color: aliceblue;
    .singerImg {
      img {
        width: 70px;
        height: 70px;
        border-radius: 2px;
      }
    }
    .center {
      font-size: 12px;
      width: 70%;
      height: 80px;
      display: flex;
      flex-direction: column;
      justify-content: space-around;
      .singerName {
        font-size: 14px;
        color: #0c73c2;
      }
      .info {
        display: flex;
        align-items: center;
        width: 50%;
        justify-content: space-between;
        span {
          color: #0c73c2;
        }
      }

      .signature {
        color: #666666;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
      }
    }
    .rightBtn {
      width: 10%;
    }
  }
}
</style>